package ex3;

public class MonthWorker extends Employee {
	double monthEarnings;
	
	public MonthWorker(double monthEarnings) {
		super();
		this.monthEarnings = monthEarnings;
	}

	public double earnings() {
		return 12 * monthEarnings;
	}

}
